package com.yanqu.road.server.cmd.activity.evefeast;

import com.yanqu.road.dao.impl.player.UserEveFeastDaoImpl;
import com.yanqu.road.entity.activity.evefeast.EveFeastItem;
import com.yanqu.road.entity.activity.evefeast.UserEveFeastData;
import com.yanqu.road.logic.pb.EveFeastPb;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.EveFeastProto;
import com.yanqu.road.server.GameServer;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.evefeast.EveFeastModule;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.GameErrorCode;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.sync.message.SyncResponse;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;

@Cmd(code = GameProtocol.S_EVEFEAST_SKIP_GUIDE, desc = "跳过引导")
public class EveFeastSkipGuideCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {

        ret = player.getModule(EveFeastModule.class).skipGuide();

    }

    @Override
    public void sendData(GamePlayer player) {
        if (ret > 0) {
            player.sendPacket(ClientProtocol.U_EVEFEAST_SKIP_GUIDE, EveFeastProto.EveFeastSkipGuideRespMsg.newBuilder().setRet(ret));
        }
    }
}
